using Mod.DisplayTypes.Settings;
using Orchard;
using Orchard.ContentManagement;
using System.Collections.Generic;
using System.Web.Script.Serialization;
using System.Linq;

namespace Mod.DisplayTypes.Models {
	
    public class DisplayTypePart : ContentPart<DisplayTypePartRecord> {
        public string Pathz { get; set; }

        private IList<RouteDefo> routeList;
        public IList<RouteDefo> RouteList
        {
            get
            {
                if (routeList == null)
                    routeList = new JavaScriptSerializer().Deserialize<RouteDefo[]>("hello").ToList();

                return routeList;
            }
            set
            {
                routeList = value;
            }
        } 
    }
}
